package com.by.medical.mapper;

import com.by.medical.bean.SysUser;
import com.by.medical.vo.SearchParamVO;
import com.by.medical.vo.SysUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface SysUserMapper {
    List<SysUser> queryAll();
    int deleteUser(int id);

    SysUser userLogin(String phoneOrNo, String pass);
    List<SysUserVO> queryUserDeptAndJob(SearchParamVO searchParamVO);

    int insertUser(SysUser sysUser);

    SysUserVO queryUserById(int uid);

    int updateUser(SysUser sysUser);

    int deleteUserBatch(List<Integer> idList);

    int insertUserBatch(List<SysUser> sysUserList);

    int updatePass(@Param("id") int id,@Param("newPass") String newPass);
}
